<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Real Estate Company</title>
	<meta http-equiv="Content-Type"
		content="application/xhtml+xml; charset=utf-8" />
	<meta name="description" content="Realestate Complaints" />
	<meta name="keywords" content="Realestate Complaints" />
	<meta name="language" content="de-AT" />

	<!--  CSS includes by JSF EL-->
	<h:outputStylesheet library="css" name="core.css" target="head" />
	<h:outputStylesheet library="css" name="fonts.css" target="head" />
	<h:outputStylesheet library="css" name="skinning.css" target="head" />
	<h:outputStylesheet library="css" name="wienerhelden.css" target="head" />
	<h:outputStylesheet library="css" name="workflow.css" target="head" />
	<h:outputStylesheet library="css" name="userSotivitiesDynamic.css"
		target="head" />

</h:head>
<h:body>
	<f:view>
		<h:form id="toolbar">
			<p:toolbar id="navigation" size="35" value="Menu">
	 
				<p:toolbarGroup align="right">
					
					<p:outputPanel styleClass="loginPanel" id="loginPanel"
						rendered="#{empty startMBean.user}">
						<p:outputPanel styleClass="groupedInput">
<!-- 							<p:outputLabel for="nickname" value="Username" /> -->
							<p:watermark for="nickname" value="Username..." /> 
							<p:inputText id="nickname" value="#{startMBean.nickname}"
								label="nickname" maxlength="50">
							</p:inputText>
						</p:outputPanel>
						<p:outputPanel styleClass="groupedInput">
<!-- 							<p:outputLabel for="password" value="Passwort" /> -->
							<p:watermark for="password" value="Passwort..." /> 
							<p:password id="password" value="#{startMBean.password}"
								label="Password" maxlength="50" />
						</p:outputPanel>
						<p:commandButton update="loginPanel"
							value="Login" action="#{startMBean.login}" />
					</p:outputPanel>
					
					<p:outputPanel id="userMenu" rendered="#{not empty startMBean.user}">
											
						<p:menuButton id="menuButton" value="Menu">
							<p:menuitem value="Mainpage"
								action="myTasks?faces-redirect=true" />
								
							<p:menuitem value="Log out" action="#{startMBean.logout}" update="" />
						
						</p:menuButton>
						
					</p:outputPanel>
 	
				</p:toolbarGroup>
			</p:toolbar>			
		</h:form>
	</f:view>
	<p:messages id="messages" showDetail="true" autoUpdate="true"
		closable="true">
		<p:effect type="fade" event="load" delay="2500" />
	</p:messages>
	<ui:insert name="content">
    	My content
    </ui:insert>
</h:body>
</html>
